/************************************************************************
 * The Class Dashboard is the abstract of the board control the rudder.
 * you can use the dash board as the test given in the test program.
 * when you first use the dash board,you must initial the object with
 * the serial port object,after you bind the serial port with the dash
 * board,you can use the dash board execute the command.
 * The author:Zhang YongChang
 * The Date:2012-2-20
 * CopyRight @ robot loving team.
 ************************************************************************/
#ifndef DASHBOARD_H
#define DASHBOARD_H

//include the Serialport and command head file
#include "serialport.h"
#include "command.h"

//put the Dashboard in the robot name space
namespace robot {

//define the symbol of buffer size
#define SIZE_OF_BUFFER 1024

class Dashboard {
public:
	//construct function and construct function.
	Dashboard(Serialport &serial_port);
	virtual ~Dashboard();

	//execute the command.
	virtual void execute(ICommand *command);

private:
	Serialport *m_serial_port;
};
}
#endif

